package com.dense.kuiniu.floatcabinet.mvp.http.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author Administrator
 * @date 2020/8/11
 */
public class BorrowBook extends StateBook {
    private int resultCode;
    private String resultMsg;
    private String borrowTime;
    private String returnTime;

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultMsg() {
        return resultMsg;
    }

    public void setResultMsg(String resultMsg) {
        this.resultMsg = resultMsg;
    }

    public String getBorrowTime() {
        return borrowTime;
    }

    public void setBorrowTime(String borrowTime) {
        this.borrowTime = borrowTime;
    }

    public String getPlanReturnTime() {
        return returnTime;
    }

    public void setPlanReturnTime(String planReturnTime) {
        this.returnTime = planReturnTime;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeInt(this.resultCode);
        dest.writeString(this.resultMsg);
        dest.writeString(this.borrowTime);
        dest.writeString(this.returnTime);
    }

    public BorrowBook() {
    }

    protected BorrowBook(Parcel in) {
        super(in);
        this.resultCode = in.readInt();
        this.resultMsg = in.readString();
        this.borrowTime = in.readString();
        this.returnTime = in.readString();
    }

    public static final Parcelable.Creator<BorrowBook> CREATOR = new Parcelable.Creator<BorrowBook>() {
        @Override
        public BorrowBook createFromParcel(Parcel source) {
            return new BorrowBook(source);
        }

        @Override
        public BorrowBook[] newArray(int size) {
            return new BorrowBook[size];
        }
    };
}